package com.choosefine.springboot.devops.bargain.service;

import com.choosefine.springboot.devops.bargain.model.Bargain;
import com.choosefine.springboot.devops.base.service.BaseService;
import org.beetl.sql.core.SQLManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class BargainService extends BaseService{
	@Autowired
	private SQLManager BargainMapper;

	public Bargain selectById(Integer id){
		Map param=new HashMap();
		param.put("id",id);
		Bargain result=BargainMapper.selectSingle("bargain.selectById",param,Bargain.class);
		return result;
	}

}
